<%@ page language="java" contentType="text/html; charset=utf-8" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="bb" class="weaver.general.BaseBean"/>
<%@ page import="weaver.general.Util" %>
<%@ page import="weaver.common.DateUtil" %>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%
    JSONObject jsonData = new JSONObject();
    rs.executeQuery( "select t1.id from uf_xmkm t1 right join uf_xmkm t2 on t1.id = t2.sjkm \n" +
            "where t1.id in('457','460','466','469','474','534','537','556','558','568','480')\n" +
            "group by t1.id" );
    String ids = "";
    while (rs.next()) {
        String id = Util.null2String( rs.getString( "id" ) );
        ids += "".equals( ids ) ? id : "," + id;
    }

    jsonData.put( "kms", ids );
    out.print( jsonData.toJSONString() );
    bb.writeLog( "getFlowWaterNum_Ajax=" + jsonData.toJSONString() );
%>
